//
// PepResolver
//
// Copyright (C) 2007 Brian Stevens.
//
//  This file is part of the JavaPepper Library.
//
//  The JavaPepper Library is free software; you can redistribute it and/or
//  modify it under the terms of the GNU Lesser General Public
//  License as published by the Free Software Foundation; either
//  version 2.1 of the License, or (at your option) any later version.
//
//  The JavaPepper Library is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
//  Lesser General Public License for more details.
//
//  You should have received a copy of the GNU Lesser General Public
//  License along with the JavaPepper Library; if not, write to the Free
//  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
//  02111-1307 USA.
//

package net.jextra.javapepper;

import javax.servlet.http.*;

/**
 * <p>
 * A PepResolver maps a request to a {@link PepResponder} and then calls that responder to do the real work.
 * </p>
 * <p>
 * The {@link PepResolverImpl} concrete class is used for the resolver unless it is overridden via the
 * <code>resolver</code> entry in the configuration file.
 */
public interface PepResolver
{
    public void processRequest( PepSession pepSession, HttpServletRequest request, HttpServletResponse response )
        throws Exception;

    public void forward( PepResponder responder, PepSession pepSession, PepMethod method, HttpServletRequest request,
        HttpServletResponse response )
        throws Exception;
}
